import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
// 第一步: 引入路由6 中的包 提供一个 Router 内置组件, 包裹根组件,实现路由的全局配置
import { BrowserRouter as Router } from 'react-router-dom';
import store from './store/index'
import { Provider } from 'react-redux'
const root = ReactDOM.createRoot(
  document.getElementById('root') as HTMLElement
);

root.render(
  <Provider store={store}>
    <Router>
      <App />
    </Router>
  </Provider>
);

